package com.spsoft.workflow.model.dto.bus;

import com.spsoft.core.annotation.EnumClassValue;
import com.spsoft.workflow.common.enums.BusFlowTypeEnums;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(value="获取流程数据入参")
@Data
public class FlowDataDto {
    @ApiModelProperty(value = "业务流程类型(FLOW_SGKP:手工开票;FLOW_YFMLY:预赋码领用;FLOW_XZSXED:下载授信额度;FLOW_THSXED:退回授信额度 )",required = true  )
    @EnumClassValue(clazz = BusFlowTypeEnums.class, message = "业务流程类型不正确")
    @NotNull(message = "业务流程类型不能为空")
    private String busType;

    @ApiModelProperty(value = "业务流程ID，如果非新增业务流程，必传")
    private Long busId;
}
